from django.urls import re_path

from workload import consumers

websocket_urlpatterns = [
    re_path(r'^ws/log/(?P<namespace>[a-z0-9_-]+)/(?P<pod_name>[a-z0-9_-]+)/(?P<container_name>[a-z0-9_-]+)$',
            consumers.LogConsumer.as_asgi()),
    re_path(
        r'^ws/ssh/(?P<namespace>[a-z0-9_-]+)/(?P<pod_name>[a-z0-9_-]+)/(?P<container_name>[a-z0-9_-]+)/(?P<rows>[\d]+)/(?P<cols>[\d]+)$',
        consumers.SSHConsumer.as_asgi()),
]
